package com.ncu.web.service;

import com.ncu.web.dao.mapper.MajorityMapper;
import com.ncu.web.entry.Majority;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class MajorityService {

    @Autowired
    private MajorityMapper majorityMapper;

    public List<Majority> selectAllMajorityInformation(){
        return majorityMapper.selectList(null);
    }

    public Majority selectMajorityById(int id) {
        return majorityMapper.selectById(id);
    }
}
